package com.bluetooth.demo.model;
import java.io.Serializable;
public class BaseResult<T> implements Serializable {
    protected int code;
    protected String message;
    protected T data;
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }
    public boolean isSucceed() {
        return code == 1;
    }
}